package net.zkbc.helloworld.protocol;

import java.io.Serializable;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import net.zkbc.helloworld.util.Validators;

public class ChangeLoginPasswordRequest implements Serializable {

	private static final long serialVersionUID = 1L;

	@Size(min = Validators.RULE_PWD_MIN, max = Validators.RULE_PWD_MAX)
	private String plainOldPassword;
	@Pattern(regexp = Validators.RULE_PWD_REGEXP)
	@Size(min = Validators.RULE_PWD_MIN, max = Validators.RULE_PWD_MAX)
	private String plainNewPassword;

	public String getPlainOldPassword() {
		return plainOldPassword;
	}

	public void setPlainOldPassword(String plainOldPassword) {
		this.plainOldPassword = plainOldPassword;
	}

	public String getPlainNewPassword() {
		return plainNewPassword;
	}

	public void setPlainNewPassword(String plainNewPassword) {
		this.plainNewPassword = plainNewPassword;
	}

}
